import request from '@/utils/request1'

// 获取字典列表
export function getDictList(params){
    return request({
        url: '/system/dict/data/list',
        method: 'get',
        params,
    // baseURL: public_config.auth_api

      })
}

// 新增字典
export function addDict(data){
    return request({
        url: '/system/dict/data/addDict',
        method: 'post',
        data,


      })
}

// 编辑字典
export function editDict(data){
    return request({
        url: '/system/dict/data/updateDict',
        method: 'post',
        data,
  
      })
}


// 获取字典详情
export function getDictDetail(params){
    return request({
        url: '/system/dict/data/queryDictDetail/'+`${params.dictId}`,
        method: 'get',
      
      
      })
}
// 删除字典
export function deleteDict(dictId) {
    return request({
      url: '/system/dict/data/deleteDict/' + dictId,
      method: 'delete',
      
    })
  }